import Vue from 'vue';
import App from './App.vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router';
import * as Api from "@/api";

Vue.config.productionTip = false
Vue.use(ElementUI);

const http = 'http://localhost:80/ydcp-service'
new Vue({
  render: h => h(App),
  router,
  beforeCreate() {
    Vue.prototype.$request = Api
    Vue.prototype.$http = http
    Vue.prototype.$bus = this
  }
}).$mount('#app')